package com.qgy.springsecurity.models.enums;

public enum ResultCode {

    SUCCESS(200,"请求成功"),
    ERROR(500,"请求失败");

    private final Integer code;
    private final String explain;

    ResultCode(Integer code, String explain) {
        this.code = code;
        this.explain = explain;
    }

    public int getCode() {
        return code;
    }

    public String getExplain() {
        return explain;
    }
}
